<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>创建动画</title>
		<style type="text/css">
			div {
				width: 300px;
				height: 300px;
				background-color: #FF6700;
				text-align: center;
				line-height: 300px;
				color: #fff;
				font-size: 26px;
				/* animation: aa 2s; */
				animation-name: aa;
				animation-duration: 2s;
			}
			/*创建一个动画*/
			@keyframes aa{
				/* from{
					transform: translateX(0);
				} */
				to{
					transform: translateX(1460px);
				}
			}
		</style>
	</head>
	<body>
		<div>这是一个会动的盒子</div>
	</body>
</html>
